package com.sc.nft.service;


import com.sc.nft.entity.MallOrder;
import com.sc.nft.entity.MallPayOrderItem;
import com.sc.nft.entity.MallPayOrderRecord;

import java.util.List;

/**
 * <p>
 * 小程序商城订单与支付单关联表 服务类
 * </p>
 *
 * @author author
 * @since 2024-05-13
 */
public interface MallPayOrderItemService {

    /**
     * 根据订单ID查询支付单
     *
     * @param orderId
     * @return
     */
    MallPayOrderItem getByOrderId(Long orderId);

    /**
     * 移除关联
     *
     * @param orderId
     * @return
     */
    Boolean remove(Long orderId);


    Boolean save(List<MallPayOrderItem> mallPayOrderItems);

    /**
     * 获取支付单对应的订单列表
     *
     * @param payOrderId
     * @return
     */
    List<MallOrder> getOrderListByPayOrderId(Long payOrderId);
}
